<template>
	<view class="fk">
		<view class="message_top">
			<view class="message_top_title" :style="{top:computedTop}">意见反馈</view>
			<view class="message_top_back" :style="{top:computedTop}" @click="Back">
				<image src="../../static/search/back.png" class="bfbimages"></image>
			</view>
		</view>

		<view class="eva_bto">
			<view>填写反馈</view>
			<view><u--textarea v-model="valueinp" placeholder="请填写您的反馈意见" border="none"></u--textarea></view>
			<view>
				<view style="width: 100%;margin-bottom: 15rpx;font-size: 28rpx;color: #333333;">图片上传</view>
				<view class="up">
					<view class="flex">
						<image src="../../static/xj.png" class="bfbimages"></image>
					</view>
					<view>上传</view>
				</view>
			</view>
		</view>

		<view class="fk_btn">提交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuButtonInfo: null,
			}
		},
		computed: {
			computedTop() {
				if (this.menuButtonInfo) {
					return `${this.menuButtonInfo.height * 2 - 6}px`;
				}
				return '0px';
			},
		},
		onLoad() {
			const info = uni.getMenuButtonBoundingClientRect();
			this.menuButtonInfo = info;
		},
		methods: {
			Back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.fk {
		width: 100vw;
		height: 100vh;
		float: left;
		background-color: #F6F8FB;

		.message_top {
			width: 100%;
			height: 200rpx;
			position: relative;

			.message_top_title {
				width: 100%;
				text-align: center;
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 36rpx;
				color: #333333;
				position: absolute;
				left: 0;
				z-index: 2;
			}

			.message_top_back {
				width: 44rpx;
				height: 44rpx;
				position: absolute;
				left: 30rpx;
				z-index: 9;
			}
		}


		.eva_bto {
			width: 690rpx;
			height: 600rpx;
			background: #FFFFFF;
			border-radius: 12rpx;
			margin: 20rpx auto 0;
		}

		.eva_bto>view:nth-child(2) {
			width: 630rpx;
			height: 220rpx;
			margin: 30rpx auto 0;

		}

		.eva_bto>view:nth-child(3) {
			width: 630rpx;
			// height: 180rpx;
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			margin: 0 auto;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
		}

		.up {
			width: 180rpx;
			height: 137rpx;
			background: #F2F2F2;
			margin-right: 20rpx;
			padding-top: 43rpx;
		}

		.up>view:nth-child(1) {
			width: 48rpx;
			height: 48rpx;
			text-align: center;
			line-height: 48rpx;
			margin: 0 auto;
		}

		.up>view:nth-child(2) {
			width: 100%;
			text-align: center;
			margin: 20rpx auto 0;
		}

		.eva_bto>view:nth-child(1) {
			width: 630rpx;
			height: 92rpx;
			border-bottom: 2rpx solid #EEEEEE;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #333333;
			margin: 0 auto;
			line-height: 92rpx;
		}


		.fk_btn {
			text-align: center;
			width: 710rpx;
			height: 100rpx;
			background: linear-gradient(270deg, #FE4624 0%, #FF8143 100%);
			border-radius: 50rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
			margin: 30rpx auto 0;
			line-height: 100rpx;
		}
	}
</style>